package com.liuzhilong.infrastructure.framework.spring.component;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class MyComponent {
    @Value("${mycompenont.hello}")
    private String hello;

    public String getHello() {
        return hello;
    }

    public void sayHello(){
        System.out.println(hello);
    }
}
